FROM       postgres:12.4
RUN        ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime;
ENV        TZ 'Asia/Shanghai'
ENV        POSTGRES_PASSWORD ????
# 设置日志语言
# RUN        localedef -i zh_CN -c -f UTF-8 -A /usr/share/locale/locale.alias zh_CN.UTF-8
# ENV        LANG zh_CN.UTF-8
COPY       config/custom.conf /usr/share/postgresql/custom.conf
COPY       init /docker-entrypoint-initdb.d
EXPOSE     5432
VOLUME     /var/lib/postgresql/data